@font-face 
{
    font-family: ft;
    src: url('../fonts/Inter-VariableFont_slnt,wght.ttf');
}

body 
{
    background-image: url('../images/unsplash_W_5Eakb1598.png');
    background-size: cover;
    background-color: black;
    color: white;
    font : bold 0 ft;
}

a
{
    text-decoration: none;
    color: white;
}

.navbar
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 2rem;
}

.greeting-container
{
    display: flex;
    flex-wrap: wrap;
    margin-top: 5rem;
}

#profile
{
    cursor: pointer;
}

#icon
{
    height: 17rem;
    margin-left: auto;
}

#greeting
{
    font-size: 1rem;
    font-weight: bold;
    margin-right: auto;
}

#greet
{
    margin-top: auto;
}

#rank
{
    margin-bottom: auto;
}

#greet-and-rank
{
    transform: translateY(4rem);
}

#title
{
    font-size: 2.2rem;
}

h1{
    margin: 0;
}

section{
    display: inline;
    color: orange;
    font-weight: bold;
}


#next,#previous
{
    color: orange;
}

#next:hover,#previous:hover
{
    color: white;
}

.leaderboard
{
    width: 80%;
    border: 0.1rem solid white;
    border-radius: 2rem 2rem 2rem 2rem;
    border-spacing: 0;
    margin-right: auto;
    margin-left: auto;
    margin-top: 7rem;
    text-align: center;
}

th,td
{
    border-right: 0.1rem solid white;
    border-top: 0.1rem solid white;
    padding: 10px;
}

tbody
{
    font-size: 1rem;
}

tr:not(:last-child):hover
{
    background-color: rgb(128, 128, 128, 0.5);
}


#first-row:hover
{
    background-color: rgb(128, 128, 128, 0.5);
}

th:last-child,td:last-child
{
    border-right: 0;
}

th
{
    border-top: 0;
    font-size: 1.2rem;
    color: orange;
}

#table-navigation
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 78%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0.7rem;
    margin-bottom: 5rem;
    font-size: 1rem;
}

#table-nav-right
{
    margin: 0;
}

.profile-icon-nav 
{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}
  
.profile-icon-nav .nav-links 
{
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
  
.profile-icon-nav .nav-links:hover 
{
    color: orange;
}
  
.profile-icon-nav .closebtn 
{
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#logout:hover
{
    color: red;
}

#input-field
{
    text-align: center;
    padding: 8px 8px 8px 32px;
}

#save-btn-container
{
    right: 0;
    text-align: center;
    padding: 8px 8px 8px 32px;
}

#save-btn
{
    border: 0.2rem solid white;
    border-radius: 2rem 2rem 2rem 2rem;
    background-color: transparent;
    text-align: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#save-btn:hover
{
    border: 0.2rem solid orange;
    color: orange;
}

.input-color
{
    border: 0.2rem solid orange;
    border-radius: 2rem 2rem 2rem 2rem;
    background-color: transparent;
    text-align: center;
    color: white;
    font-weight: bold;
    width: 20%;
}

.input-color:focus
{
    outline: none;
}

#event-based-title
{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    padding-left: 5rem;
    
}

@media screen and (max-height: 450px) 
{
    .profile-icon-nav {padding-top: 15px;}
    .profile-icon-nav .nav-links {font-size: 18px;}
}

@media (max-width: 460px) 
{    
    #logo
    {
        width: 0;
    }

    .navbar{
        justify-content: none;
    }

    #event-based-title
    {
        text-align: left;
        margin-right: auto;
        margin-left: 0.1rem;
        padding-left: 0;
    }

    #title
    {
        margin-right: auto;
    }

    #greet-and-rank
    {
        transform: translateY(2rem);
    }


}

@media (max-width: 333px) 
{
    
    #title
    {
        font-size: 1.5rem;
    }

    #event-based-title
    {
        font-size: 1.2rem;
    }

    #profile
    {
        height: 1.5rem;
    }   
}

@media (max-width: 250px) 
{

    #title
    {
        font-size: 1rem;
    }

    #event-based-title
    {
        font-size: 0.7rem;
    }

    #profile
    {
        height: 1rem;
    }
    
    .navbar
    {
        margin: 1rem;
    }
}

@media (max-width: 160px) 
{
    #title
    {
        font-size: 0.75rem;
    }

    #event-based-title
    {
        font-size: 0.5rem;
    }

    #profile
    {
        height: 0.75rem;
    }
    
    .navbar
    {
        margin: 0.5rem;
    }

}

@media (max-width: 685px) 
{
    #icon
    {
        height: 12rem;
    }
    #greeting
    {
        font-size: 0.8rem;
    }
}

@media (max-width: 476px) 
{
    #icon
    {
        height: 9rem;
    }
    #greeting
    {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) 
{
    #icon
    {
        height: 7rem;
    }
    #greeting
    {
        font-size: 0.5rem;
    }
    #greet-and-rank
    {
        transform: translateY(2rem);
    }

}

@media (max-width: 293px) 
{
    #icon
    {
        height: 5rem;
    }
    #greeting
    {
        font-size: 0.4rem;
    }

    #greet-and-rank
    {
        transform: translateY(1rem);
    }
}

@media (max-width: 500px) 
{
    .navbar
    {
        margin-left: 0.1rem;
        margin-right: 0.1rem;
    }
}

@media (max-width: 400px)
{
    #table-navigation
    {
        font-size: 0.7rem;
    }
    
    tbody
    {
        font-size: 0.7rem;
    }

    th
    {
        font-size: 1rem;
    }

}